import React from 'react';
import {connect} from 'react-redux'
// import style from './style.module.css'
import { Input } from 'antd';

const { TextArea } = Input;


const GoodsDetail = (props) => {
    const onChange = e => {
        console.log('Change:', e.target.value);
        props.dispatch({
            type:'GET_NEWSHOP',
            payload:{
                introduce:e.target.value
            }
        })
      };
      const {newShop}=props
      console.log(newShop,'newShop')
    return (
        <div className='goodsDetail'>     
        <TextArea showCount value={newShop.introduce} maxLength={200} onChange={onChange} />
        </div>
    );
}

export default connect((state)=>{
    return {
        newShop:state.newShop
    }
})(GoodsDetail) ;
